package com.changfang.gold_man.common;

import lombok.Data;

import java.util.HashMap;

@Data

//封装统一返回类
public class ResultVO {
    private Integer code;
    private String msg;
    private Object data;

    public ResultVO(ResCode resCode) {
        this.code = resCode.getCode();
        this.msg = resCode.getMsg();
    }

    public ResultVO(ResCode resCode, Object data) {
        this(resCode);
        this.data = data;
    }
    public ResultVO(ResCode resCode, HashMap hashMap) {
        this(resCode);
        this.data = hashMap;
    }
}
